package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.dto.VehicleSaveParam;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VehicleMapper {
    /**
     * 显示车辆全部的基本信息
     * @param vehicleQuery
     */
    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);

    /**
     * 新增车辆信息
     * @param vehicle
     */
    void insert(Vehicle vehicle);

    /**
     * 修改车辆信息
     * @param vehicle
     */
    void update(Vehicle vehicle);

    /**
     * 删除车辆信息
     * @param vehicleId
     */
    void deleteById(Long vehicleId);

    /**
     * 移除/解绑电子围栏
     * @param vehicle
     */
    void unbindVehicle(Vehicle vehicle);
}
